/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



package combo;

import java.util.Scanner;

/**
 *
 * @author CJ
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("Please enter an integer");
        int intInput = input.nextInt();

        //Now get input into a 2D array
        int count;
        for(count = 0;(int)(intInput/(Math.pow(10, count)))>0;count++)
        {}
        //System.out.println(count);
        Integer[] storage = new Integer[count];

        int x = count - 1;
        for(int i = 0;i < count;++i)
        {
            storage[x] = intInput % 10;
            intInput /= 10;
            --x;
        }
        Combo.driver(storage);
    }

}
